//
//  FangTaiViewController.m
//  LOU
//
//  Created by 要帅气的生活 on 15/11/10.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "FangTaiViewController.h"
#import "Size.h"
#import "ToolUtil.h"

@interface FangTaiViewController ()

@end

@implementation FangTaiViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.hidden = YES;
    [ToolUtil createLine:margin_64 superView:self.view lift:0 width:WindowWidth hight:0.5 color:[UIColor grayColor]];
    [self createTitle:@"楼盘详情" midTitle:@"房态"];
    [self creatView];
    // Do any additional setup after loading the view.
}
- (void)creatView
{
    UILabel * titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(margin_10, margin_64 + margin_10, margin_90, margin_34)];
    titleLabel.font = FONT(14);
    titleLabel.text = @"房态";
    float y = [ToolUtil createLine:CGRectGetMaxY(titleLabel.frame) superView:self.view lift:margin_10 width:(WindowWidth - margin_20) hight:0.5 color:[UIColor grayColor]];
    NSArray * array = [NSArray arrayWithObjects:@"房型",@"面积",@"套数", nil];
    for (int i = 0; i < 3; i++) {
        UILabel * titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0 + i * WindowWidth / 3, y + margin_10, WindowWidth / 3, margin_34)];
        titleLabel.font = FONT(14);
        titleLabel.textAlignment = 1;
        
        titleLabel.text = array[i];
        [self.view addSubview:titleLabel];
    }
    
    [self.view addSubview:titleLabel];
}
- (void)doBack:(UIButton *)btnBack
{
    
    [self.navigationController popViewControllerAnimated:YES];
    self.tabBarController.tabBar.hidden = YES;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
